package keyword

import "fmt"

type TypeInt int

const (
	TypeAge1 TypeInt = iota
	TypeAge2
	TypeAge3
)

type TypeRole int

const (
	CreateId TypeRole = iota
	AccountId
)

func (t TypeInt) StringTest(Name string) {
	fmt.Println(Name)
}

func (t TypeInt) CaseString(module string) string {
	switch t {
	case TypeAge1:
		return fmt.Sprintf("张三 + %s", module)
	default:
		return fmt.Sprintf("蔡徐坤咯咯+%s", module)
	}
}
